<!DOCTYPE html>
<html xmlns=http://www.w3.org/1999/xhtml xmlns:bd=http://www.baidu.com/2010/xbdml>
<head>

    <meta http-equiv="Content-Type" content="text/html" charset="utf-8">
    <title>添加账号</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    
    <link rel="stylesheet" href="/pc/layui/css/layui.css" media="all" />
    <link rel="stylesheet" href="/pc/layout/css/font_eolqem241z66flxr.css" media="all" />
</head>
<body class="childrenBody">
<form class="layui-form">
{{csrf_field()}}
    <div class="layui-form-item">
        <label class="layui-form-label">账号</label>
        <div class="layui-input-block" style="width: 25em;">
            <input type="text" class="layui-input" name="account" lay-verify="required" placeholder="请输入账号">
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">联系人</label>
            <div class="layui-input-inline" style="width: 25em;">
                <input type="text" class="layui-input" name="name" lay-verify="required" placeholder="请输入联系人名称">
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">手机号</label>
            <div class="layui-input-inline" style="width: 25em;">
                <input type="tel" class="layui-input"
                name="phone" lay-verify="required" placeholder="请输入添加手机号码">
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">密码</label>
            <div class="layui-input-inline" style="width: 25em;">
                <input type="password" class="layui-input" name="pwd" lay-verify="required" placeholder="请输入密码">
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">确认密码</label>
            <div class="layui-input-inline" style="width: 25em;">
                <input type="password" class="layui-input" name="rpwd" lay-verify="required" placeholder="请确认密码">
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">角色</label>
            <div class="layui-input-inline" style="width: 12em;">
                <select name="role" lay-verify="">
                    <option value="">请选择</option>
                    @if(!empty($roleInfo))
                        @foreach($roleInfo as $val)
                            <option value="{{$val['id']}}">{{$val['name']}}</option>
                        @endforeach
                    @endif
                </select>
            </div>
            <label class="layui-form-label">状态</label>
            <div class="layui-input-inline">
               <input type="checkbox" name="status" lay-skin="switch" lay-text="启用|禁用" value="0" lay-filter="Status">
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit="" lay-filter="addAdmin">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
<script type="text/javascript" src="/pc/layui/layui.js"></script>
<script type="text/javascript" src="/pc/admin/js/create.js"></script>
</body>
</html>